//
//  NSMutableDictionary+QTZ.m
//  QTZ
//
//  Created by ski on 2017/7/5.
//  Copyright © 2017年 ski. All rights reserved.
//

#import "NSMutableDictionary+QTZ.h"

@implementation NSMutableDictionary (QTZ)

- (void)setSafeObject:(id)anObject forKey:(id)aKey {
    if (anObject && aKey) {
        [self setObject:anObject forKey:aKey];
    }
}

- (id)safeObjectForKey:(NSString *)key
{
    if (key && [self objectForKey:key]) {
        return [self objectForKey:key];
    } else {
        return nil;
    }
    
}

@end
